#ifndef HEADCONTROLLER_H_INCLUDED
#define HEADCONTROLLER_H_INCLUDED

#include "ofMain.h"



class HeadController : public ofBaseApp{

	public:

		enum DIRECTION {		//int
			DIRECTION_UP,		//0
			DIRECTION_DOWN,		//1
			DIRECTION_LEFT,		//2
			DIRECTION_RIGHT,	//3
			DIRECTION_STOP		//4
		};

		HeadController();
		~HeadController();

		void setup();
		void update();
		void draw();

		void keyPressed  (int key);


		//--setters
		void setMovePixels(int _num_pixels);
		void setPosition(int _x, int _y);
		void setDirection(DIRECTION _newDirection);
		void setSize(int _size);

		//--getters
		ofPoint getPosition();
		DIRECTION getDirection();


    private:

		//--positioning head
		void moveHead();
        ofPoint position;
		DIRECTION moveDirection;
		int movePixels;
		int size;
		ofImage headTop;
		ofImage headBottom;




};

#endif
